/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PositionsDialog.java
 *
 * Created on May 1, 2010, 11:00:28 PM
 */

package org.foment.gem.dialogs;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.foment.joliage3.sql.*;
import javax.swing.JOptionPane;
import static org.foment.joliage3.core.internationalization.Internationalization.i18n;

/**
 *
 * @author Jaksa
 */
public class PositionsDialog extends javax.swing.JFrame {

    /** Creates new form PositionsDialog */
    public PositionsDialog() {
        initComponents();

        toFront();
        setComponents();
    }

    private void setComponents() {

        sQLComboBoxMainJob.setQuery("SELECT JobID AS keyName, JobTitle AS fieldName FROM Job;");
        sQLComboBoxMainJob.listenTables("Job");

        sQLComboBoxJobs.setQuery("SELECT JobID AS keyName, JobTitle AS fieldName FROM Job;");
        sQLComboBoxJobs.listenTables("Job");

        sQLComboBoxPositions.setQuery("SELECT JobTypeID AS keyName, JobTypeTitle AS fieldName FROM JobType;");
        sQLComboBoxPositions.listenTables("JobType");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        sQLComboBoxPositions = new org.foment.joliage3.newt.SQLComboBox();
        jLabel3 = new javax.swing.JLabel();
        sQLComboBoxJobs = new org.foment.joliage3.newt.SQLComboBox();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel4 = new javax.swing.JLabel();
        jTextFieldPositionTitle = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jTextFieldPositionDuration = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        sQLComboBoxMainJob = new org.foment.joliage3.newt.SQLComboBox();
        jTextJobTitle = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jButtonDeleteJob = new javax.swing.JButton();
        jButtonModifyJob = new javax.swing.JButton();
        jButtonNewJob = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Editor poslova i pozicija");
        setAlwaysOnTop(true);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Editor pozicija", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(102, 102, 102))); // NOI18N

        sQLComboBoxPositions.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sQLComboBoxPositionsActionPerformed(evt);
            }
        });

        jLabel3.setText("Izaberite poziciju");

        jLabel4.setText("Posao za izabranu poziciju");

        jTextFieldPositionTitle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldPositionTitleActionPerformed(evt);
            }
        });

        jLabel5.setText("Naziv pozicije");

        jButton1.setText("Obrisi poziciju");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });

        jButton2.setText("Modifikuj poziciju");
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton2MouseClicked(evt);
            }
        });

        jButton3.setText("Unesi poziciju");
        jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton3MouseClicked(evt);
            }
        });

        jLabel6.setText("Trajanje pozicije (god.)");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 432, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addContainerGap(351, Short.MAX_VALUE)
                        .addComponent(jLabel3))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addComponent(jButton3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton1))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(sQLComboBoxPositions, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addContainerGap(307, Short.MAX_VALUE)
                        .addComponent(jLabel4))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(59, 59, 59)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel5)
                            .addComponent(jLabel6))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(sQLComboBoxJobs, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextFieldPositionDuration, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextFieldPositionTitle, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(sQLComboBoxPositions, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(sQLComboBoxJobs, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldPositionTitle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldPositionDuration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2)
                    .addComponent(jButton3))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Editor osnovnih poslova", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(102, 102, 102))); // NOI18N

        sQLComboBoxMainJob.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sQLComboBoxMainJobActionPerformed(evt);
            }
        });

        jLabel1.setText("Naziv posla:");

        jButtonDeleteJob.setText("Obrisi posao");
        jButtonDeleteJob.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButtonDeleteJobMouseClicked(evt);
            }
        });

        jButtonModifyJob.setText("Modifikuj posao");
        jButtonModifyJob.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButtonModifyJobMouseClicked(evt);
            }
        });

        jButtonNewJob.setText("Unesi novi posao");
        jButtonNewJob.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButtonNewJobMouseClicked(evt);
            }
        });

        jLabel2.setText("Izaberite posao ili unesite novi");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(103, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jLabel2)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jButtonNewJob)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonModifyJob)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonDeleteJob))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(sQLComboBoxMainJob, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 255, Short.MAX_VALUE)
                            .addComponent(jTextJobTitle))))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(sQLComboBoxMainJob, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextJobTitle, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonDeleteJob)
                    .addComponent(jButtonModifyJob)
                    .addComponent(jButtonNewJob)))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTextFieldPositionTitleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldPositionTitleActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldPositionTitleActionPerformed

    private void sQLComboBoxMainJobActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sQLComboBoxMainJobActionPerformed

        // insert selected data into job title field
        jTextJobTitle.setText(sQLComboBoxMainJob.getSelectedValueName());
    }//GEN-LAST:event_sQLComboBoxMainJobActionPerformed

    private void jButtonModifyJobMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonModifyJobMouseClicked
        // modify job title in database
        if (jTextJobTitle.getText().equals(""))
            return ;

        String sqlQuery = "UPDATE Job SET JobTitle = '"+ jTextJobTitle.getText() +"' WHERE JobID = "+ sQLComboBoxMainJob.getValue() +";";
        try
        {
            Connection  conn = Database.getConnection();
            conn.createStatement().executeUpdate(sqlQuery);
            Database.getTable("Job").reload();
            conn.close();

        } catch (SQLException ex) {
            ex.printStackTrace();
        }

    }//GEN-LAST:event_jButtonModifyJobMouseClicked

    private void jButtonDeleteJobMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonDeleteJobMouseClicked

        // delete selected job from database
        if (sQLComboBoxMainJob.getValue() != -1) {

            String message = i18n("Are you sure you want to delete this job?");
            String[] options = {i18n("Yes"), i18n("No")};

            int option = jOptionPane.showOptionDialog(this, message, "Foment Group", jOptionPane.YES_NO_OPTION, jOptionPane.QUESTION_MESSAGE, null, options, 0);

            if (option == jOptionPane.YES_OPTION) {

                String sqlQuery = "DELETE FROM Job WHERE JobID = "+ sQLComboBoxMainJob.getValue() +";";
                try
                {
                    Connection  conn = Database.getConnection();
                    conn.createStatement().executeUpdate(sqlQuery);
                    Database.getTable("Job").reload();
                    conn.close();

                } catch (SQLException ex) {
                    ex.printStackTrace();
                }
            }
        }

    }//GEN-LAST:event_jButtonDeleteJobMouseClicked

    private void jButtonNewJobMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonNewJobMouseClicked

        // insert new job in database
        if (jTextJobTitle.getText().equals(""))
            return ;

        String sqlQuery = "INSERT INTO Job (JobTitle) VALUES ('"+ jTextJobTitle.getText() +"');";
        try
        {
            Connection  conn = Database.getConnection();
            conn.createStatement().executeUpdate(sqlQuery);
            Database.getTable("Job").reload();
            conn.close();

        } catch (SQLException ex) {
            ex.printStackTrace();
        }

    }//GEN-LAST:event_jButtonNewJobMouseClicked

    private void sQLComboBoxPositionsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sQLComboBoxPositionsActionPerformed


        String sqlQuery = "SELECT * FROM JobType WHERE JobTypeID = "+ sQLComboBoxPositions.getValue() +";";
        try
        {
            Connection  conn = Database.getConnection();
            ResultSet rs = conn.createStatement().executeQuery(sqlQuery);

            while(rs.next()) {

                String positionTitle = rs.getString("JobTypeTitle");
                int positionDuration = rs.getInt("JobTypeDuration");
                int positionMainJob  = rs.getInt("JobID");

                jTextFieldPositionTitle.setText(positionTitle);
                jTextFieldPositionDuration.setText("" + positionDuration);
                sQLComboBoxJobs.setValue(positionMainJob);
            }

            rs.close();
            conn.close();

        } catch (SQLException ex) {
            ex.printStackTrace();
        }


    }//GEN-LAST:event_sQLComboBoxPositionsActionPerformed

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked

        // delete selected position from database
        if (sQLComboBoxMainJob.getValue() != -1) {

            String message = i18n("Are you sure you want to delete this position?");
            String[] options = {i18n("Yes"), i18n("No")};

            int option = jOptionPane.showOptionDialog(this, message, "Foment Group", jOptionPane.YES_NO_OPTION, jOptionPane.QUESTION_MESSAGE, null, options, 0);

            if (option == jOptionPane.YES_OPTION) {

                String sqlQuery = "DELETE FROM JobType WHERE JobTypeID = "+ sQLComboBoxPositions.getValue() +";";
                try
                {
                    Connection  conn = Database.getConnection();
                    Database.getConnection().createStatement().executeUpdate(sqlQuery);
                    conn.close();
                    Database.getTable("JobType").reload();

                } catch (SQLException ex) {
                    ex.printStackTrace();
                }
            }
        }
    }//GEN-LAST:event_jButton1MouseClicked

    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseClicked
        
        // modify position data in database
        if (jTextFieldPositionTitle.getText().equals(""))
            return ;

        String message = i18n("Are you sure you want to modify this position?");
        String[] options = {i18n("Yes"), i18n("No")};

        int option = jOptionPane.showOptionDialog(this, message, "Foment Group", jOptionPane.YES_NO_OPTION, jOptionPane.QUESTION_MESSAGE, null, options, 0);

        if (option == jOptionPane.YES_OPTION) {

            String title = jTextFieldPositionTitle.getText();
            int duration = Integer.parseInt(jTextFieldPositionDuration.getText());
            int jobID    = sQLComboBoxJobs.getValue();

            String sqlQuery = "UPDATE JobType SET JobTypeTitle = '"+ title +"', JobTypeDuration = "+duration+", JobID = "+ jobID +
                    " WHERE JobTypeID = "+ sQLComboBoxPositions.getValue() +";";
            try
            {
                Connection  conn = Database.getConnection();
                conn.createStatement().executeUpdate(sqlQuery);
                conn.close();
                Database.getTable("JobType").reload();

            } catch (SQLException ex) {
                ex.printStackTrace();
            }
        }
    }//GEN-LAST:event_jButton2MouseClicked

    private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton3MouseClicked

        // insert new position in database
        if (jTextFieldPositionTitle.getText().equals(""))
            return ;

        String title = jTextFieldPositionTitle.getText();
        int duration = Integer.parseInt(jTextFieldPositionDuration.getText());
        int jobID    = sQLComboBoxJobs.getValue();

        String sqlQuery = "INSERT INTO JobType (JobTypeTitle, JobTypeDuration, JobID) VALUES " +
                "('"+ title +"', "+ duration +", "+ jobID +");";
        try
        {
            Connection  conn = Database.getConnection();
            conn.createStatement().executeUpdate(sqlQuery);
            conn.close();
            Database.getTable("JobType").reload();

        } catch (SQLException ex) {
            ex.printStackTrace();
        }

    }//GEN-LAST:event_jButton3MouseClicked

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new PositionsDialog().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButtonDeleteJob;
    private javax.swing.JButton jButtonModifyJob;
    private javax.swing.JButton jButtonNewJob;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField jTextFieldPositionDuration;
    private javax.swing.JTextField jTextFieldPositionTitle;
    private javax.swing.JTextField jTextJobTitle;
    private org.foment.joliage3.newt.SQLComboBox sQLComboBoxJobs;
    private org.foment.joliage3.newt.SQLComboBox sQLComboBoxMainJob;
    private org.foment.joliage3.newt.SQLComboBox sQLComboBoxPositions;
    // End of variables declaration//GEN-END:variables

    private JOptionPane jOptionPane;
}
